print in reverse hackerrank solution